package com.feng.eduservice.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.feng.commonutils.R;
import com.feng.eduservice.entity.EduTeacher;
import com.feng.eduservice.dto.TeacherQuery;

/**
 * <p>
 * 讲师 服务类
 * </p>
 *
 * @author fengge
 * @since 2023-01-09
 */
public interface EduTeacherService extends IService<EduTeacher> {
    /**
     * 查询所有讲师
     * @return
     */
    R findAllTeacher();

    /**
     * 根据id逻辑删除讲师
     * @param id
     * @return
     */
    R removeTeacher(String id);

    /**
     * 分页查询讲师数据
     * @param current 当前页
     * @param limit 每页展示条数
     * @return
     */
    R pageListTeacher(long current, long limit);

    /**
     * 根据条件分页查询讲师数据
     * @param current
     * @param limit
     * @param teacherQuery
     * @return
     */
    R pageTeacherCondition(long current, long limit, TeacherQuery teacherQuery);

    /**
     * 添加讲师
     * @param eduTeacher
     * @return
     */
    R addTeacher(EduTeacher eduTeacher);

    /**
     * 根据id查询讲师数据
     * @param id
     * @return
     */
    R getTeacher(String id);

    /**
     * 根据id修改讲师数据
     * @param eduTeacher
     * @return
     */
    R updateTeacher(EduTeacher eduTeacher);

    /**
     * 前台分页查询讲师数据
     * @param page
     * @param limit
     * @return
     */
    R getTeacherList(long page, long limit);

    /**
     * 根据讲师id查询讲师的基本信息
     * @param teacherId
     * @return
     */
    R getTeacherFrontInfo(String teacherId);
}
